<{include file="app/header.tpl"}>

    <header class="focus focus3 loadimg">
        <ul class="focusUl fix">
            <{foreach from=$goods.images item="img"}>
            <li>
                <img src="<{$img}>" alt="">
            </li>
            <{/foreach}>
        </ul>
        <ol class="focusOl">
            <{foreach from=$goods.images item="img" name="images"}>
            <li <{if $smarty.foreach.images.index == 0}>class="active"<{/if}>></li>
            <{/foreach}>
        </ol>
    </header>

    <div class="goods-detail-header">
        <p class="bottom fix">
            <span class="left">月销量 <strong class="number"><{$goods.salesMonth}></strong></span>
            <span class="right"><{$goods.cityName}></span>
        </p>
    </div>
    <div class="goods-detail-info">
        <p class="title"><{$goods.name}></p>
        <p class="money"><span class="new-money"><{$goods.price}></span><span class="old-money">价格 <{$goods.origPrice}></span></p>
    </div>
    <div class="goods-detail-shop">
        <a href="/davshop/detail/<{$shop.id}>" class="a" title="">
            <div class="left">
                <img src="<{$shop.shopIcon}>" alt="" class="img">
            </div>
            <div class="middle">
                <p class="shop-name"><{$shop.shopName}></p>
                <p class="line">
                    <span class="text">描述 <strong class="stars"><{$shop.scoreGoods}></strong></span>
                    <span class="text">服务 <strong class="stars"><{$shop.scoreService}></strong></span>
                    <span class="text">发货 <strong class="stars"><{$shop.scoreDeliver}></strong></span>
                </p>
            </div>
            <em class="back-icon"></em>
        </a>
    </div>
    <nav class="goods-detail-nav">
        <ul class="fix">
            <li class="li"><a href="javascript:void(0)" title="">宝贝详情</a></li>
            <li class="li"><a href="/goods/evaluation/<{$goods.id}>" title="">宝贝评价</a></li>
        </ul>
    </nav>
    <!-- 后台编辑处 start -->
    <div class="goods-detail-backstage-edit">
        <{$goods.description}>
    </div>
    <!-- 后台编辑处 end -->
    <ul class="goods-detail-footer fix">
        <li class="li"><span class="a" onclick="window.youzi.client_chat_create_conversation('<{$shop.chatUser}>')">联系卖家</span></li>
        <li class="li"><span class="a" onclick="goods_show_buy_box('addCart', '确 认')">加入购物车</span></li>
        <li class="li"><span class="a" onclick="goods_show_buy_box('buyNow', '确 认')">立即购买</span></li>
    </ul>

    <{include file="app/goods/buy_box.tpl"}>

    <script>
    // 焦点图轮播
    lw.focus(document.getElementsByClassName('focus')[0], 6000);

    </script>

<{include file="app/footer.tpl"}>
